on Impression
Called when an impression event has been generated by the player system.
The provided Impression object contains all the detailed information pertaining to this specific impression event (e.g., timestamp, associated content ID, number of faces detected, demographic estimates, etc., depending on the impression type and capabilities of the Impression implementation).
Implementers can use this callback to:
- Record the impression for analytics or reporting purposes.
- Trigger conditional logic based on the nature of the impression (e.g., change content if a certain audience demographic is detected).
- Log detailed event data for auditing or debugging.
Parameters
impression
A non-null Impression object containing the details of the generated impression.